package afcp.alumni.action.page;

import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.Resolution;
import afcp.alumni.action.base.PageAction;

/**
 * Action for HTTP errors 401, ie when an user try to access a restricted page
 * without authentication or insufficient credentials.
 * 
 * @author Antoine
 * 
 */
public class UnauthorizedAction extends PageAction {
	
//	public static final String URL = "/admin";
	@Override
	public String getUrl() {
		return null;
	}

	private static final String TITLE = "Accueil";
	private static final String JSP = "/WEB-INF/jsp/error_401.jsp";

	@Override
	@DefaultHandler
	public Resolution view() {
		return this.toJsp();
	}

	@Override
	public String getTitle() {
		return TITLE;
	}

	@Override
	protected String defaultJsp() {
		return JSP;
	}

//	@Override
//	@Before
//	protected void setPageVisitedBoolean() {
//	}

}
